package com.bjfu.college.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 
 * @TableName student_info_intention_scheme
 */
@TableName(value ="student_info_intention_scheme")
@Data
public class StudentInfoIntentionScheme implements Serializable {
    /**
     * 
     */
    @TableId
    private Integer id;

    /**
     * 学生id
     */
    private Integer studentId;

    /**
     * 志愿方案id
     */
    private Integer schemeId;

    /**
     * 专业类
     */
    private String majorClass;

    /**
     * 院校层次
     */
    private String institutionalLevel;

    /**
     * 办学性质
     */
    private String schoolProperty;

    /**
     * 省份
     */
    private String province;

    /**
     * 招生类别
     */
    private String enrollmentCategory;

    /**
     * 偏差分数
     */
    private Integer scoreBias;

    /**
     * 其他筛选条件
     */
    private String otherConditions;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        StudentInfoIntentionScheme other = (StudentInfoIntentionScheme) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getStudentId() == null ? other.getStudentId() == null : this.getStudentId().equals(other.getStudentId()))
            && (this.getSchemeId() == null ? other.getSchemeId() == null : this.getSchemeId().equals(other.getSchemeId()))
            && (this.getMajorClass() == null ? other.getMajorClass() == null : this.getMajorClass().equals(other.getMajorClass()))
            && (this.getInstitutionalLevel() == null ? other.getInstitutionalLevel() == null : this.getInstitutionalLevel().equals(other.getInstitutionalLevel()))
            && (this.getSchoolProperty() == null ? other.getSchoolProperty() == null : this.getSchoolProperty().equals(other.getSchoolProperty()))
            && (this.getProvince() == null ? other.getProvince() == null : this.getProvince().equals(other.getProvince()))
            && (this.getEnrollmentCategory() == null ? other.getEnrollmentCategory() == null : this.getEnrollmentCategory().equals(other.getEnrollmentCategory()))
            && (this.getScoreBias() == null ? other.getScoreBias() == null : this.getScoreBias().equals(other.getScoreBias()))
            && (this.getOtherConditions() == null ? other.getOtherConditions() == null : this.getOtherConditions().equals(other.getOtherConditions()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getStudentId() == null) ? 0 : getStudentId().hashCode());
        result = prime * result + ((getSchemeId() == null) ? 0 : getSchemeId().hashCode());
        result = prime * result + ((getMajorClass() == null) ? 0 : getMajorClass().hashCode());
        result = prime * result + ((getInstitutionalLevel() == null) ? 0 : getInstitutionalLevel().hashCode());
        result = prime * result + ((getSchoolProperty() == null) ? 0 : getSchoolProperty().hashCode());
        result = prime * result + ((getProvince() == null) ? 0 : getProvince().hashCode());
        result = prime * result + ((getEnrollmentCategory() == null) ? 0 : getEnrollmentCategory().hashCode());
        result = prime * result + ((getScoreBias() == null) ? 0 : getScoreBias().hashCode());
        result = prime * result + ((getOtherConditions() == null) ? 0 : getOtherConditions().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", studentId=").append(studentId);
        sb.append(", schemeId=").append(schemeId);
        sb.append(", majorClass=").append(majorClass);
        sb.append(", institutionalLevel=").append(institutionalLevel);
        sb.append(", schoolProperty=").append(schoolProperty);
        sb.append(", province=").append(province);
        sb.append(", enrollmentCategory=").append(enrollmentCategory);
        sb.append(", scoreBias=").append(scoreBias);
        sb.append(", otherConditions=").append(otherConditions);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}